package feiyi

import (
	"github.com/ruoklive/proxypool/internal/ipgetter/base"
	"github.com/ruoklive/proxypool/pkg/models"
	"github.com/ruoklive/proxypool/pkg/register"
	"io"
)

func init() {
	register.Add(func() register.IPGetter {
		return New()
	})
}

type IPGetter struct {
	base.Base
}

func New() *IPGetter {
	g := &IPGetter{}
	g.Base = base.NewBase("http://example.com",g.Parse,"example")
	return g
}


func (g *IPGetter) Parse(body io.ReadCloser) (result []*models.IP) {
	 // 這裡是解析獲取的內容的邏輯，並返回解析獲取到的IP
	return
}


